package com.shsh.safemanage.model;


public class Equipment implements HSEReportUnit {
	/**
	 * 
	 */
	private static final long serialVersionUID = -617077847580385842L;

	private Long id;
	private String equipName;
	private Long departmentID;
	private String depart1Name;
	private boolean isEquipmentManager;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getReportUnitName() {
		return this.equipName;
	}

	public String getEquipName() {
		return equipName;
	}

	public void setEquipName(String equipName) {
		this.equipName = equipName;
	}

	public Long getDepartmentID() {
		return departmentID;
	}

	public void setDepartmentID(Long departmentID) {
		this.departmentID = departmentID;
	}

	public String getDepart1Name() {
		return depart1Name;
	}

	public void setDepart1Name(String depart1Name) {
		this.depart1Name = depart1Name;
	}

	public boolean isEquipmentManager() {
		return isEquipmentManager;
	}

	public void setEquipmentManager(boolean isEquipmentManager) {
		this.isEquipmentManager = isEquipmentManager;
	}

	public int hashCode() {
		return this.id.intValue();
	}

	public boolean equals(Object o) {
		if (o == null) {
			return false;
		}

		if (!(o instanceof Equipment)) {
			return false;
		}

		Equipment equipment = (Equipment) o;
		return equipment.getId().equals(this.id);
	}

}
